fix register and AMD
0.2.8