fix duplicate set calls.