Bug fix regarding moving the atoms