Redirect  was not initialized as an array, fix applied