Fix bug causing mysqldump to fail