Fix duplicated variable