Fixed bug with alert form