fixed some systemcalls