fix defined but not used in lua binding