#134 fixed index creation