Fixed problem with pasted items lacking a type