Bug/dublicate

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