patched OutOfBoundaryException