Fixed bug that removed all assigned tags on second resource's save

Fixes #24