fix in the OmxRepository, when totalcount < page size