Fixed bug undefined last and next runtime when start app