fixed package loc bug