Fixed interface segfault issues