This is a bit of a dirty fix, so please review it. Had to do this to get settings from json to apply uniforms.