fix render layout via exeption