Returning the correct duration when file too short