fix function injection