Never call GUI methods from core directly, fix #436