fixed commit bug