fixed bug in update meta data as reported by Seppi and added his
testcase