Fixing amount check for RPC