Fixing a grep issue