fix undefined_function