Corrected the condition to fill avg star.