fixed error with message box