fixed a bug with the settings that was causing them to reset