Recognizing periods

fixed.