fix open crash