Fix  called undefined property 'sheet'