Pure fix for new api.
(for now, until pure gets removed or refactored)