fix avoid "Error: cannot call methods on resizable prior to initialization; attempted to call method 'option'"

fix avoid "Error: cannot call methods on resizable prior to initialization; attempted to call method 'option'"