fix issues with incorrectly formated media profile files