IO/OSError issue fixed