Avoid array overruns