Fixed an issue with sending gas to a contract