Fixing multiple contact assignment problem