Fix a mistake in callback