Bug fixed where error near index 1 appeared.