fixed problem when generic is not visible inside completion