mysqli bug fix