trying to fix alert error for a user