This part caught my attention. You are right, it does not make sense. This is actually a fix given by my company to make one of our main project work. And it does its job.
But I tried to take it off and make my current project work. And it does. So the solution is to not limit the number of UID-s inside container and work on a better fix for the main project
Thanks a lot for your help.