fixed indexing on html declarations