fix read double