removing close animation bug