Fix serial API (debug message removed)