Fixed error getting file size