fix for alert after reload