Fixed bug with no initialized layout cookie