Fix zero id failure on mysql