fix scalar deref