Fixed bug with repeating words