Fixes var redeclaration