Fixed saving prev_residents