Fixed: bug in mysql_check()