fix sock js race horse condition