Fixed bug in grepf