Fixed safe zone detection.... i think.