fixed error when using -f fields directive