error in cor2df fixed