Fix immutable of_function