fix pages navigation out of limit