It will be difficult to solve the problem if we do not have enough information.
Would you please give me the coordinates for those polygons that you have tried?
It will be much easier for me to test it if you can provide me more information.