Fix issue when fieldtype is not specified