Horrible mistake in constructor