Fixed read AFL register function.