fix column undefined because of id, patches adding if outside selected