Corrected bug on .loop statement

Corrected bug that would make impossible to instantiate entities
that contain no previous .elem scope before a .loop scope