coutmt bug fixes