Fixed a bug introduced caused by an RPC call added in d67a447c3b2a220ed7b61a7b1ed51f9655a00cee