fix wrong argument error message

fix wrong argument error message in AP