Bug: was reading 6 bytes instead of 7 from flash