Fix up the rendering of gui engines. Closes #708