#28. Implemented quick fix for malformed contract.