fix constants transformer not accurately checking nodes