Fixed an issue in delete activity