Fix for doubles