Fix a type mistmach (interface vs. implementation).