Fixed purging not working