3D: Error causing mouse events to not work