core: check registers numbers, fix fallback mode