Fixed crach when adding first measure.