fix endpoint's default value