Changed way bytes are gotten in ASMRegistry to try and fix runtime errors.