bug fix: crash when using compound without a formula