Fixed issue when a formula file declare multiple classes inheriting from Formula class