Fixed the problem of multiple message boxes.