Fixed bug with layout restoration of class/tyle information