fix block loc bug