add fix to time script elapsed