fix error on connection to mysql