fixed segfault when carrier is empty