fixed out-of-bounds starting position bug