Accidentals are absolute, not relative. If it's a double sharp next to an F, it's an F double sharp (enharmonic equivalent of G natural). Accidentals will always override the key signature.