fixed bug in xpath