fix err: calElements(...K), but use k in inside