Empty graph bug in preprocessing rules