fix open lua error