Fixed words array bug