Fix function read