Fixing bug #3

so the url its not undefined and works ok to post a new item