Index out of bounds fix (scale too short)