removed segfault in serial