Delete activity error

Fixed error when deleting activity