find redeclare error in one golang file (fixes #482, #479)

fix #482