Fixed a shader double initialization bug.