fixes 'creating object from empty' strict error