修改 compact fix #18