admin mode bug fix