fix locate block problem