fixed some crashes with spotify