fix the bug that crashing when cssShare is false