Fix pagination bug at media list template