Fix serious bugs about syscalls. Complete all tasks