fixed invalid system call