Fixed crash caused by newly imported files having id of 0