Adaptation

Small fix required for the new adaptation mechanism.

To be merged after enthought/traits#51 .