Reset lastTime on unload, fixes #747