Found a bug in the restoreItem function, so I squashed it with my face