Fix using
Fix wrong array bounds