fix bug in remove alert