better bugfix for .d