fix a bug that caused only html files to be created