Fix table selector bug