Fix use of attrs => attributes

I believe this was a copy and paste error, but the undefined attrs was used when it seems like it should be attributes.