fix time logging nil error on my page