Fixed syscall handler