Fixed problem with adding contract type to contract