fix for calculating internal functions without variable definition