Fixed bug in contract constructor that won't populate empty details.