Fixing cost type issue.