Fixed bug in _generate_expression_dependancies(...)