Fixing the reference with temp