fix index controller