Fix the index bug and a render normal bug