Correction for proxy addition for REST API (was only made for Stream API..)