SQL coverage plus bug fix