return_to redirect fix

Fixed invalid array keys, excess variable removed.