Was causing redirect