fixed MySQL insertion error