Fixed hosts ref deletion
RPC fix