Fixed segfault with ns_between