Fix engpoint
Do not add empty query chunk to the url