fix bug in adminport