fixed bug in close tag for matrix tabs