fix bug lost cavity