A couple details missed in making legend dynamic