Fixed typo, added filesize == 0