When using a Repository, the $limit parameter was lost along the way. This is why the limit was always set to 10 in that case.