fix ensureDeferredHScrollBarCreated being called twice