fixed client crash