fix sql port crash