added minObservedPeriod and fixed fatal bugs in checkbehavior