Fixed SQL trace display bug