fix don't touch attr if there isn't one