Fix complete function