Fixed minor bug in item edit.