Fix definition check