has bug getTotalPages