fix double success message bug