fixing rest url