fix error on mysql connection