Fixed crashed caused by pre-fetching uniforms