fixing delete activity issue