Fix messagebox not hiding