Fixing runtime errors and message box height.