fix bug in adminform.