fix some problems according to review of Bugzilla backend PR