fixed log output before qualification null bug