Fixed array bound errors