fix for bug when wp does not save settings