Regenerate attributes instead only clearing them

This prevents spurious errors when only using the backend