fix undefined layout, content