Fix closing th