fix prev commit bug