Fix atm crash and user ranks