Fix [ 321 ] Import block might cause name error.
Authored by: milde 2017-06-22
Parent: [r8118]
Child: [r8120]