Fixing mistake in code