fix for doubles