fixed bugs with atlas change