fix errors when not opennig second box