fixed missing layout error