Fix serial freeze