Fix mediamanager

it seems that _.indexOf() only works on array