fix update route when path param is empty