fixes TS on BS