Fixes #923 thanks for the hint @bamnet