fix alerts and register