Prevent possible lua error