Fixed a problem occurring when the mouse trail has not been calculated
until the very end