Fixed javascript error with lable doodle