fix custom views and select-ref