Fixed instantiating abstract classes