fixed lua plugin