Fixed issue with layouClass not being defined