Fix close modal without clean data