fix first tick bug