Fixed full screen closing immediately

Fixed full screen closing immediately because of canvas container not being defined.