fixed pagination layout bug