fixing filesize bug