Fix app settings getting reset