fixes undefined appitem - fixes #12396