Fixed bug in new item where deptid wasn't being set