fix minor errors with alerts