Fixed register read issue