fixed the sublayouts not rendering all the time