fixed bug at index.coffee