Fixed segfault in pling