fixed clear() dialog