Fixed error-by-one-word bug