Fixed the commite bug