Fixed PHP notices in item form.