Fix for media search returning each object separately and caused an exception