Variable redeclaration error fix.