In case of an error in paso a seg fault occured. this was caused by inproper deallocation of memory in this case. this problem is fixed now.