fixed bug in reading measures from disk