bugfix on -f param