Fixed scaleFactor() not returning if invalid