fixed a bug in settings