Fixed error in Assembler that caused the assembler to get stuck in a
loop when importing files in some cases