remove the empty attributes hash