Variable name duplicate error