Fixed and tested getScales