nobug - fixes errors in correlations and an ancient migration

Had some problem with stage caused by these issues. @rhelmer r?