Fixed mediafiles parsing