Sometimes working, sometimes not sounds more like path then software. Have you tried lower baud rates?