Code Improvements

Some ratings wasnt fetched correctly and forced the sript to halt.
now fixed.