`set` method ignores functions