fixed a bug in handling expired spots