Fixed a lua error