bug fixed for sql-detail.html