Fix bug in adddress handling for reflash