fixed bug on malformed configuration in redirect