Fixed small issue with metadata update