Fixed empty points list bug.