flatTool fix