Fix: [ bug #1765 ] Unable to create a contract

Fix: [ bug #1765 ] Unable to create a contract