fixed atlas bug