fixed pagination navigation bug