fixing bug with centering words