Added check when is delete element