fix view indexing in built version