Fix bug smal_window