fix class reopen using 'class << self'