change scheduler module, previous module have bug