fixed crash in log controller