Handle undefined gate