Fix prefix detection for hybrid mode