fix log controller