hacked a fix for selecting wm