temp fix to resolve socket js error