More workarounds to prevent gui glitches with gambas 3.4.0