Make ref_frame proper type