fixes for duration and mimetype comparisons