fix non-working -i option