Fixed warnings in index