Fixed stack overflow error without layouts that don't extend a parent layout and set override_default_layout=False