Fixed crashing when assigned/existing uniforms don't match.