fixing bug for nodes without input-files

This finally fixed the error for my nodes without input-files so far.