Fixed out-of-memory bug with recursive dependency or multiple classes per file