fixed bug where non-schema subclass instance broke prioritisation