bug fix to when deleting a start or end point, colour change to the selected yellow