fix: the __index metamethod should be called from a closure function.