Fixed atm bug