That optimize call looks ok. So the error must be elsewhere. I would not leave it at that, but look for the problem. If you can't find it, you can contact Support for help.