fixed syscalls error checking