small bugfix with file logging