fixed sentence occurrences problem from submission test case