fix navigate to out of range exception
Merge pull request #554 from vasily-kirichenko/fix-navigate-to-out-of-range-exn

fix navigate to out of range exception