fix register with fix dev major