fix some routes problems