Fix scale issue by density