fixed SQL laucnh crash