Fixed slop from returning the wrong window ID in certain situations.