fix bug magic number7