Fixed modal doubleclick bug