useref current is possibly null