fix data redeclaration