Corrected the condition to fill avg star.
Merge pull request #242 from VinRudramurthy/dev-branch

Corrected the condition to fill avg star.