fix generator feature detection