Bugfix #1732 (remove prefix containing unusual rights)