fixes bug with referencing super class