fixed default assignment of attrs when left blank