fix getting hash for commit