Fixed the issue when the message box window had an incorrect height