Fix error allert shown