Fix object as array error in yoast