Fixes file extension for index