fixed missing grace period on foreign device register