fix long track issue and initialization bug