fixed defaults and attribute setting