Fixed safe zone indexing error