Fixed important issue. Thrown StackoverflowException when changing the content provider.