attempt to fix selection bug table