FIxed setmetatable signature (made second argument nilable)