Apparently solved misterious serial bug