repair syscall