fixed category check during block editing