fixed the success message issue