Bug/duplicate

Implementing fix for https://github.com/mesosphere/marathon/issues/324