fixing instabilities