fix warning default object