fix overflow & restrict to max. 16 log entries