Fixed usage of empty identifier and metadata when adding item