fix redirecting key back