important cleanup on directive scope