fixed bug with demo time