bugfix with filepicker, forgot to put a nullcheck