fixed comparison to previous word