fixed a bug where the wrong super class ctor was called