small fix for a lua error