fix rest path