Fix compact error