minor fix register *erro handling