BUG:fix a bug of delete office
BUG:fix several bugs of input