issue #20961: fixed used function for site and generally