Remove function being rendered at the end