Fixed lua error when calculating - namespace was missing in function call