fixed bug where deleting last break point would throw an error due to incorrect setting of envelope time