Fix bug where attribute was mistaken for Kernel method.