Fix mistake in lua api