Fixed bug in -compact.