Fix bug when reopening multiple classes within a module