Fix a util bug in admin tools