Fix to create contract