fixed issue when checking for file size