small fix to register print to avoid simulator crash.