fix duplicate assignment