fixes mysql issue