Fixed segfault in proxy model