Fixed bug in filsize determination