Please at least include the script name...
p.s. Just because the script works on regular client doesn't necessary mean that mirror client is broken.
It may as well be the case where script uses the API incorrectly and relies on undefined behavior which is, of course, different on mirror client.