fix alert return problem