repaired a warning