fixed issue with ref to uknown variable in omdb method