fixed bug for unstable