fix function call