Fix the exceptions trown by MySQL sink