Fix for lag in dev_mode=false and items close together not chaning last_id