Remove double type from classOnClose option