fixes #3943 Script errors on Users page