Fixed a bug in next render tick time.