fixed color issue with begin and end nodes