Fixes the path for the index view