Fixed error opening invalid path