Fixed some crashes. Now everything uses the shared settings