bugfix for non-executables