small fix to attribute controller