fix point handling in envelope widget