Update selfcompact.cpp