fix loop points