Fixing BehaviorLoop constructor