bugfix for mysqli