Fixing a flaw in the constructor