Dog law ‘a mistake’