Fix blowing the stack in getconstructor