prevent reload user error. Fixed code error