fixed lua stuff