Fix bug error when serial does not exists.