#29 fixed a bug, which caused a nullpointer exception when opening a file