Bug fix for  vertical text

Bug fix for  vertical text showing in function readLayout