fix constructor fix #4894

@benbro noticed this mistake