Small fix if loading custom view for the first time