Fixed problems with message boxes.