fixed reading NVM data