fixed busyUntil algorithm