Fixed a problem with scheduler (counter overflow...)