fix compactAllOnStart
fix compactAllOnStart