metadata editor bug fixes, closes #327