Fixed bug with multiple atlases