fixes correlation analysis problem with some datasets