Fix optimizeContent