fix duplicate var name