Wrong system call being used