Fixing AI - dwelling visitation code should now work properly