handle returnTo not being set