Fix several references to this in proxy to use variable 'element' to avoid keyword issues