fixed issue with settings close