Fix getSubdef method call