Fix setting type of imported media entry