Fixed bug where isA doesn't call parent constructor