Fixed auto-clear func