typo on variable name; fixing autoredirect