partially fixed error message box