fix crash bug for shader test