Fix HMVC to work with multiple inheritance levels