FIX referencebug