fix showing alert in admin panel