[noticket] fix error in sql profiling