Fixed bug with time execution