Story OutOfBound and NullPointer fixed