Many serious bugs resolved.

Fix some Bugs: memory leaks, schedule multi-call, delay-time.