Don't use std::find instead of std::set::find. Also refresh properly timeline bounds on the curve editor