fix box openning error handling