correlation: Small bugfixes