fix function not found