Bug fix for vertical text 

Bug fix for vertical text showing to make function readLayout work correctly