fix message boxes not appearing properly when e.g. trading