fixed issue 1567 with scheduler and Mysql
Merge pull request #119 from niphlod/issue/1567

fixed issue 1567 with scheduler and Mysql