Fixed bug with first elements of the time array being overwritten

- was caused by malloc space for pointers of strings