fixed several issues in client sid