fix loop messagebox