Fixing a drools issue by passing correct variable.