Fix the bug with corrupted search context value "ctx" while during xpath search