fix uncorking code