fixed a bug with settings