Fixed layout engine problems with substates