fixed #17 Properly open non-existing files