fix for discrete attribute auto assign