Adding the ref helps