fix VM stack inconsistency caused by lua plugin