Fixed incorrect usage of the dispatcher redirect() function