location: fix for the pending depart flag to avoid a dead lock