bugfix to readwords