fix register on gui