fix login redirect to last position