fix route bug in logout