fixed a wrong function call that resulted in errors not being restored by the backend when receiving RPC responses from hostmanager