fix redeclear err