Fix incorrect reading