fix 540 in vier
Merge pull request #687 from tobiasd/bug_540

fix 540 in vier