fixed initialization bug with settings