fix showing empty attributes