fix for read by callback