fileop: bugfix