fixed bug in compact option