Added a type check for set window id; fails test