fix bug for call lua function