fix block bug