Restrict unit amount to 1(fix rare bug)