PennController for IBEX › Forums › Support › Running into JS error with MouseTracker when trials have different names › Reply To: Running into JS error with MouseTracker when trials have different names
September 19, 2022 at 5:49 pm
#8422
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi,
Thank you for identifying this nasty bug! I’ll make sure it doesn’t happen in the next version of PennController. In the meantime, you should create the MouseTracker element at the beginning of your trial (newMouseTacker
) and only start it later, possibly after end()
, using getMouseTracker
to refer back to it
Jeremy