Fixed bug with atlas iterator