Fixed MessageBox sometimes not working