You can use a quality stain that is water-based to avoid this problem. If you want to avoid using a stain, you can also apply a sealer after staining. When it comes to wood finishing, there is no one right way.