Move @actual_id into to_param in case to_param is called during a reload.