fixes #1041

but it looks weird
Merge pull request #1043 from Fank/patch-7

fixes #1041