Small fixes in web api.