fix constructor fix #4894

@benbro noticed this mistake
Merge pull request #4895 from gero3/patch-17

fix constructor fix #4894