fix imagefield close bug