Fix to run successfully with Mysql strict mode