fix register where data passed as param