fix redirect function
update version