fixed wrong return value in RestHelper