fix for omnicomplete: arg can be a userdata