fixed stats when scale isn't specified, and test #1038