Fix addpage navigation bug