Fix for alert box error