fixed regenerate thumb  and fixed media count