fixed issue when endpoint deployed in as suburi