patched autominimise bug in gui