Fixes bug in purge logic and admin screen