fixed jquery dialog destroy bug