Fixed PHP warning for creating default object.