bugfix for REST calls on client side