fixed missing commit call.