fix function completion.