quickfixed a bug