fix for IOException