fix SelectTable bug