prevent NPE and correctly fill in mixins and fieldtypes