Fixed implicit long in restore.