word array bug fixed