double class fix