Table selection bug fixed