fix register api