Made a new function called SetWindowFeatureNames which is called after SelectFeatures is done.
Hopefully, this fixes the bug with SelectFeatures.