fix($scope): fix when calling the remove function twice

When calling twice the remove function returned from $on, remove the listener once