Fix for #3526

Use the interface, not the implementation.