Added fix for textmetada constructor without parameter