Fix empty attrs bug