Fixed #568 - Fixed index schema migration functionality