In the detection of halogen, nitric acid is added to the Lassaigne’s extract. Its main function is to