Improved the setting of sample density/ratio so that they are consistent