Fixed the layout extension problem.