fix for an io exception