fixed bug where non-existent BaseType was used