bug in atlas generation