fix bugs on correlation BP