Added reset iteration before parse magicspaces.