major potential data loss bug