ref.current : Why is often null?