Fix. Prevent  undefined array given into the redirectMap.