Unable to switch to window with index: '1'

@duyluong @ThanhTo

This bit me today.