fix on error mistake
fix ssize_t type mistake