fixes invalid value in controller redirect

fixes #1261