Using 'blank' as default type for new category. Updated logic at other places for consistencty.