Agent locking fix that I missed the first time around