small
fix word null bug
fix out of range bug