Fix error in displaying commit state