fixed timing issues when calling 'purgeQueue' and 'loadQueue' in succession