fix #12074, standalone graph throws error when clicked