fixed issue of closing of app after changing theme from settings