Dynamic xpath bug