fix register routing