Dirty hack for dynamic layouts support.