Fix error on column header click