Fixed the bug where only the last bezier curve was selectable. (Why is this working thought...?)