Fixed an issue with adding index to production