Fixed Ski database code