Fixed a bug where some logic is computed for objects outside the activity zone