Fixed bug occurring when mouse trail was not set