Fixed bug in atlas relaoding