fix generate reads