fix one segfault bug...something is still strange, but has to do with stack