fixes admin hooks