Fix bug with id macro find var