fix for changes in how type is handled